/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", Arial, sans-serif;
}
body {
    color: #333;
    background-color: #fff;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}


/* 顶部栏样式 */
.top-bar {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}
.logo-group img {
    height: 50px;
    margin-right: 15px;
    vertical-align: middle;
}


/* 搜索框样式 */
.search-box {
    display: flex;
    align-items: center;
}
.search-box input {
    height: 32px;
    padding: 0 10px;
    border: 1px solid #ccc;
    outline: none;
    width: 180px;
}
.search-btn {
    height: 32px;
    width: 32px;
    background-color: #c00;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn img {
    width: 20px;
    height: 20px;
}


/* 导航栏样式 */
.main-nav {
    background-color: #004691;
}
.nav-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    padding: 0 15px;
}
.nav-list li {
    position: relative;
}
.nav-list li a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
}
.nav-list li a:hover {
    background-color: #003366;
}


/* 轮播图样式 */
.banner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}
.banner-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-item {
    min-width: 100%;
}
.banner-item img {
    width: 100%;
    height: auto;
    display: block;
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 60px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}
.banner-arrow-left {
    left: 0;
}
.banner-arrow-right {
    right: 0;
}
.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #fff;
    opacity: 0.6;
    cursor: pointer;
}
.dot.active {
    opacity: 1;
    background-color: #c00;
}


/* 学院新闻样式 */
.news-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}
.section-header {
    border-bottom: 2px solid #004691;
    padding-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.section-header h2 {
    color: #004691;
    font-size: 18px;
}
.more-btn {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #004691;
    color: #fff;
    text-align: center;
    line-height: 24px;
    font-size: 18px;
    border-radius: 2px;
}
.news-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
}
.news-item {
    width: calc(20% - 12px);
    text-align: center;
}
.news-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid #eee;
}
.news-item p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* 页脚样式 */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    margin-top: 30px;
}
.footer p {
    margin-bottom: 5px;
}


/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background-color: #004691;
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
}
.back-to-top.active {
    display: block;
}


/* 响应式适配 */
@media (max-width: 768px) {
    .logo-group img {
        height: 40px;
    }
    .nav-list {
        flex-wrap: wrap;
    }
    .news-item {
        width: calc(50% - 10px);
    }
    .banner-arrow {
        width: 30px;
        height: 50px;
        font-size: 18px;
    }
}